.disaster-container {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 1.25rem;
    padding: 1.25rem;
    height: calc(100vh - 60px); /* 减去导航栏高度 */
    overflow: hidden;
}

.sidebar {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: 100%;
    overflow-y: auto;
}

.filter-section, .stats-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.filter-section h3, .stats-section h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-item label {
    color: #666;
    font-size: 0.9rem;
}

.filter-item select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-range input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.875rem;
    flex: 1;
}

.severity-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.stats-grid {
    display: grid;
    gap: 0.875rem;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #e8f5e9;
    color: #2ecc71;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-icon.weather {
    background: #e3f2fd;
    color: #2196f3;
}

.stat-icon.disease {
    background: #fce4ec;
    color: #e91e63;
}

.stat-content {
    flex: 1;
}

.stat-content h4 {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0.25rem 0;
}

.stat-trend {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-trend.positive {
    color: #2ecc71;
}

.stat-trend.negative {
    color: #e74c3c;
}

.content-area {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
    overflow-y: auto;
}

.map-section {
    flex: 1;
    min-height: 400px;
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.map-controls {
    display: flex;
    gap: 0.5rem;
}

.btn-control {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-control:hover, .btn-control.active {
    background: #f8f9fa;
    border-color: #3498db;
    color: #3498db;
}

.map-container {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1rem;
}

.trend-section {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: 360px;
}

.trend-controls {
    display: flex;
    gap: 0.5rem;
}

.btn-time {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-time:hover, .btn-time.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.chart {
    height: calc(100% - 50px); /* 减去标题区域高度 */
    margin-top: 1rem;
}

.info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
    overflow-y: auto;
}

.panel-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.panel-card h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-top: 1rem;
}

.alert-item {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    margin-bottom: 0.875rem;
}

.alert-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.alert-item.high {
    border-left: 4px solid #e74c3c;
}

.alert-item.medium {
    border-left: 4px solid #f39c12;
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.alert-type {
    font-weight: 600;
    font-size: 0.9rem;
}

.alert-time {
    font-size: 0.8rem;
    color: #888;
}

.alert-content {
    padding: 0.875rem 1rem;
}

.alert-content p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
}

.alert-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #888;
}

.alert-footer {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.record-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-top: 1rem;
}

.record-item {
    padding: 0.875rem;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #eee;
}

.record-time {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.record-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: #2c3e50;
}

.record-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.record-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.record-status.completed {
    color: #2ecc71;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.warning {
    background: #f39c12;
    color: white;
}

.btn-text {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-text:hover {
    background: rgba(52, 152, 219, 0.1);
}

.btn-text i {
    font-size: 0.9rem;
}

/* 滚动条美化 */
.sidebar::-webkit-scrollbar,
.content-area::-webkit-scrollbar,
.info-panel::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb,
.content-area::-webkit-scrollbar-thumb,
.info-panel::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-track,
.content-area::-webkit-scrollbar-track,
.info-panel::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

/* 适配不同屏幕高度 */
@media screen and (max-height: 800px) {
    .disaster-container {
        gap: 1rem;
        padding: 1rem;
    }

    .sidebar, .panel-card {
        padding: 1rem;
    }

    .map-section {
        min-height: 350px;
    }

    .trend-section {
        height: 320px;
    }

    .stat-card {
        padding: 0.75rem;
    }
} 